import {
	http
} from '@/node_modules/uview-plus'

/**
 * @function 授权登录
 */
export const login = (params) => http.post('/login', params);


/**
 * @function 获取手机号
 * @iv
 * @code
 * @encryptedData
 */
export const getMobile = (data) => http.get('/getMobile', {
	data
});


/**
 * @function 订单列表
 * @iv
 * @code
 * @encryptedData
 */
export const orderList = (data) => http.get('order/lists', {
	data
});


/**
 * @function 城市、站点、预支时限
 */
export const dictionary = (data) => http.get('dictionary', {
	data
});


/**
 * @function 上传
 */
export const upload = (data) => http.post('upload', {
	data
});


/**
 * @function 申请订单
 */
export const orderCreate = (data) => http.post('order/create', data);


/**
 * @function 支付接口
 */
export const orderPay = (data) => http.post('order/pay', data);


/**
 * @function 用户协议、隐私协议、弹窗
 */
export const config = () => http.get('config');
